<#include "../template/template_listPage.ftl">
<@header title="手机号码归属地管理">
<style type="text/css">
    .table {
        padding: 1px;
        text-align: center;
    }
</style>
<script type="text/javascript">
    function modify(phone) {

    }
    function deletePhoneArea(phone) {
        var result = confirm("你确认要删除吗?");
        if (result) {
            var url = "${web_base}/recharge/phone_area!delete.htm?phone=" + phone;
            //$('#listForm').attr("action","url");
            //$('#listForm').submit();
            window.location.href = url;
        }
    }
</script>
</@header>
<body class="list">
<div class="body">
    <div class="listBar">
        <h1><span class="icon">&nbsp;</span>您当前的位置&nbsp;<span class="pageInfo">[手机号码归属地维护]</span></h1>
    </div>
<@pageList page=(page!) id="listForm" action="" query="phoneAreaQuery" isEmpty=true>
    <div class="operateBar">
        <label>号码:</label>
        <input type="text" name="phone" value="${phone!}" id="phone"/>
        <button type="submit">查询</button>
        <button type="button" onclick="">导入</button>
        <button type="button">添加</button>
        <span style="color: red;">${Request["tip"]! }</span>
    </div>
    <table class="listTable" style="margin-top: 30px;">
        <tr>
            <th><span class="sort">号码段</span></th>
            <th><span class="sort">归属省份</span></th>
            <th><span class="sort">归属城市</span></th>
            <th><span class="sort">卡 类 型</span></th>
            <th><span class="sort">操作</span></th>
        </tr>
       <#if  page??&&page.list??&&(page.list?size gt 0) >
            <#list page.list as obj>
                <#if obj??>
                    <tr>
                        <td>${obj.phone!}</td>
                        <td>${obj.province!}</td>
                        <td>${obj.city!}</td>
                        <td>${obj.type!}</td>
                        <td><a href="${web_base}/recharge/phone_area!toEdit.htm?phone=${obj.phone!}" title="修改">修改</a>&nbsp;&nbsp;<a
                                href="###"
                                onclick="deletePhoneArea('${obj.phone!}');">删除</a>
                        </td>
                    </tr>
                </#if>
            </#list>
        </#if>
    </table>
</@pageList>
</div>
</body>
</html>